# -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name： parse_dns_ip
Description :
Author : 'li'
date： 2021/4/27
-------------------------------------------------
Change Activity:
2021/4/27:
-------------------------------------------------
"""
import subprocess

p = subprocess.Popen('nslookup qq.com', shell=True, stdout=subprocess.PIPE)
out, err = p.communicate()
for line in out.splitlines():
    print(line)
